CC = g++
TARGET = cptest
SRC = $(wildcard *.cc)
OBJ = $(patsubst %.cc,%,o,$(SRC))

$(TARGET):$(SRC)
	$(CC) -o $@ $^ -std=c++11 -lpthread

.PHONY:clean
clean:
	rm -rf $(TARGET) $(OBJ)